package cn.edu.xmu.orderpayment.order.microservice.vo;

import cn.edu.xmu.orderpayment.order.microservice.retvo.ProductRetVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Yujie Lin
 * @date 2021/12/9 20:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FreightCalVo {
    private Long productId;
    private Long quantity;
    private Long freightId;
    private Long weight;

    public FreightCalVo(ProductRetVo productRetVo, Long quantity){
        this.productId=productRetVo.getId();
        this.quantity=quantity;
        this.freightId=productRetVo.getFreightId();
        this.weight=productRetVo.getWeight();
    }


}
